import { createApp, useAttrs} from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { router } from './router'
import bus from './router/bus'
import * as ELIcons from '@element-plus/icons-vue'
import directive from './utils/directive'
import axios from 'axios'
// import './utils/mock'
import './assets/css/iconfont.css'
var app = createApp(App)

for (let iconName in ELIcons) {
	app.component(iconName, ELIcons[iconName])
}
directive(app)
app
    .use(router)
    .use(ElementPlus)
    .mount('#app')


app.config.globalProperties.$axios = axios
app.config.globalProperties.$bus = bus

